package com.jf.identity.mongo.impl;

import com.jf.identity.entity.GatherInfo;
import com.jf.identity.entity.GatherProcess;
import com.jf.identity.mongo.AbstractBaseMongoTemplete;
import com.jf.identity.mongo.IdentityGatherDao;
import org.springframework.stereotype.Repository;

/**
 * Created by x on 2018/4/14.
 */
@Repository
public class IdentityGatherDaoImpl extends AbstractBaseMongoTemplete implements IdentityGatherDao {

    @Override
    public int insertIdentityGatherProcessInfo(GatherProcess gatherProcess) {
        mongoTemplate.insert(gatherProcess);
        return 1;
    }

    @Override
    public int insertIdentityGatherInfo(GatherInfo gatherInfo) {
        mongoTemplate.insert(gatherInfo);
        return 1;
    }
}
